package Date1204;

import java.util.Scanner;  

public class Demo5 {

    public static void main(String[] args){  
        Scanner sc = new Scanner(System.in);  
        String s = sc.nextLine(); 
        char[] xf = {'绿','绿','绿','绿'};  // x前   
        char[] xb = {'蓝','蓝','蓝','蓝'};  // x后   
        char[] yf = {'红','红','红','红'};  // y前   
        char[] yb = {'橙','橙','橙','橙'};  // y后   
        char[] zf = {'白','白','白','白'};  // z前   
        char[] zb = {'黄','黄','黄','黄'};  // z后    
        char[] c = s.toCharArray();   
        for(int i=0;i<c.length;i++){  
            switch(c[i]){  
            case 'x': { // x旋转操作   
                xSpin(xf, yf, yb, zf, zb);  
            }break;  
            case 'y': { // y旋转操作   
                ySpin(xf, xb, yf, zf, zb);  
            }break;  
            case 'z': { // z旋转操作   
                zSpin(xf, xb, yf, yb, zf);  
            }break;  
            }  
        }  
        System.out.println(xf[1]+""+yf[0]+""+zf[2]);  
    }    
    public static void xSpin(char[] xf, char[] yf, char[] yb, char[] zf,char[] zb) {  
        char yf0 = yf[0];  
        char yf2 = yf[2];  
        char yb0 = yb[0];  
        char yb2 = yb[2];  
        yf[0] = zf[0];  
        yf[2] = zf[2];  
        yb[0] = zb[0];  
        yb[2] = zb[2];   
        zf[0] = yb0;  
        zf[2] = yb2;  
        zb[0] = yf0;  
        zb[2] = yf2;    
        char xf0 = xf[0];  
        xf[0] = xf[2];  
        xf[2] = xf[3];  
        xf[3] = xf[1];  
        xf[1] = xf0;  
    }    
    public static void ySpin(char[] xf, char[] xb, char[] yf, char[] zf,char[] zb) {  
        char zf2 = zf[2];  
        char zf3 = zf[3];  
        char zb0 = zb[0];  
        char zb1 = zb[1];    
        zf[2] = xf[3];  
        zf[3] = xf[1];  
        zb[1] = xb[2]; 
        zb[0] = xb[3];    
        xb[2] = zf2; 
        xb[3] = zf3;  
        xf[1] = zb0;  
        xf[3] = zb1;     
        char yf0 = yf[0];  
        yf[0] = yf[2];  
        yf[2] = yf[3];  
        yf[3] = yf[1];  
        yf[1] = yf0;  
    }    
    public static void zSpin(char[] xf, char[] xb, char[] yf, char[] yb,char[] zf) {  
        char xf0 = xf[0];  
        char xf1 = xf[1];  
        char xb2 = xb[2];  
        char xb0 = xb[0];    
        xf[0] = yf[0];  
        xf[1] = yf[1];  
        xb[0] = yb[2];  
        xb[2] = yb[3];   
        yf[0] = xb2;  
        yf[1] = xb0;  
        yb[3] = xf0;  
        yb[2] = xf1;   
        char zf0 = zf[0];  
        zf[0] = zf[2];  
        zf[2] = zf[3];  
        zf[3] = zf[1];  
        zf[1] = zf0;  
    }  
} 


